package com.ykdl.member.kid.beans;

import java.io.Serializable;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class Card_idBean implements Serializable, IJsonParser{

	/**
	 * {
            "card_name": "圣元奶粉店门店卡",
            "card_id": 1,
            "file": {
                "file_url": "http://imgs.ykdllmyr.com/storecards/2014/10/28/9sfWW6VmR9SHjwtNcJbju4.jpeg",
                "file_id": 6465464
            }
        },
	 */
	private static final long serialVersionUID = 7916233090375410318L;
	private String card_name;
	private int card_id ;
	private FileBean file ;
	public String getCard_name() {
		return card_name;
	}
	public int getCard_id() {
		return card_id;
	}
	public FileBean getFile() {
		return file;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Card_idBean.class);
		}
		return null;
	}

}
